package com.doraemon.module.buyer.dao;

import com.doraemon.module.buyer.entity.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 *
 * @author doraemon
 * @date 2017/9/12
 */
public interface OrderMasterDao extends JpaRepository<OrderMaster,String> {
    /**
     * 查询对应买家的订单信息（带分页）
     * @param buyerOpenid 买家OpenId
     * @param pageable 分页信息
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
